package org.ben.domain.strategypattern;

public class SalesTax extends Tax {
    private static SalesTax SALESTAX;

    private  SalesTax(String name, Double taxRate) {
        super(name, taxRate);
    }

    public static Tax getInstance() {
        if(null == SALESTAX)
            SALESTAX = new SalesTax("salesTax",0.05D);
        return SALESTAX;
    }
}
